package com.phiture.erp.basic.core.pojo.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author YH
 * @date 2025/3/31
 */

@Schema(description = "管理后台 - ERP 物料 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpMaterialRespForBomVO {
    @Schema(description = "物料编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15672")
    @ExcelProperty("物料编号")
    private Long id;

    @Schema(description = "物料名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("物料名称")
    private String name;

    @Schema(description = "物料条码", requiredMode = Schema.RequiredMode.REQUIRED, example = "X110")
    @ExcelProperty("物料条码")
    private String barCode;

    @Schema(description = "物料类别编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "11161")
    private Long categoryId;
    @Schema(description = "物料类别", requiredMode = Schema.RequiredMode.REQUIRED, example = "水果")
    @ExcelProperty("物料类别")
    private String categoryName;

    @Schema(description = "单位编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8869")
    private Long unitId;
    @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "个")
    @ExcelProperty("单位")
    private String unitName;

    @Schema(description = "物料状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("物料状态")
    private Integer status;

    @Schema(description = "物料规格", example = "红色")
    @ExcelProperty("物料规格")
    private String standard;

    @Schema(description = "计划属性")
    private ErpMaterialPlanRespForBomVO planInfo;
}
